package cn.tedu.oop;

public class Test4_Static {
    public static void main(String[] args) {
        Student.coding();
        System.out.println(Student.name);

        Student s = new Student();
        s.study();
        System.out.println(s.age);

        s.coding();
        System.out.println(s.name);

        Student s1 = new Student();
        s1.name = "蛇皮";

        Student s2 = new Student();
        System.out.println(s2.name);
    }
}
class Student{
    int age = 10;
    public void study(){
        System.out.println(age);
        System.out.println(name);
        coding();
        System.out.println("正在学习java");
    }
    static String name;
    static public void coding(){
        //this.study();
        //super();
        System.out.println(name);
        //study();
        System.out.println("正在敲代码");
    }
}